package com.deuwise.system.mapper;

import com.deuwise.system.entity.SysUser;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
    *  Mapper 接口
    * </p>
 *@author deuwise
 *@date 2018-11-06 14:15:04
 */
public interface SysUserMapper extends BaseMapper<SysUser> {


    /**
     * 查询权限
     * @param userId
     * @return
     */
    List<String> queryAllPerms(String userId);

    /**
     * 菜单list
     * @param userId
     * @param appId
     * @return
     */
    List<String> queryAllMenuId(@Param("userId") String userId,@Param("appId") String appId);
}